package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceActivitiesMysticalShopConditions 神秘商店道具条件配置
type DanceActivitiesMysticalShopConditions struct {
	Id              int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	ActivitiesId    int64          `json:"activitiesId" gorm:"column:activities_id;type:bigint;default:0;not null;comment:活动id"`
	GiftConditionId int64          `json:"giftConditionId" gorm:"column:gift_condition_id;type:bigint;default:0;not null;comment:礼物条件id"`
	GiftId          string         `json:"giftId" gorm:"column:gift_id;type:varchar(256);not null;default:'';comment:礼物id"`
	GiftNum         int64          `json:"giftNum" gorm:"column:gift_num;type:bigint;default:0;not null;comment:礼物数量"`
	ElementNo       int64          `json:"elementNo" gorm:"column:element_no;type:bigint;default:0;not null;comment:道具编号"`
	ElementNum      int64          `json:"elementNum" gorm:"column:element_num;type:bigint;default:0;not null;comment:道具数量"`
	EffectTime      int64          `json:"effectTime" gorm:"column:effect_time;type:bigint;default:0;not null;comment:时效"`
	LimitNum        int64          `json:"limitNum" gorm:"column:limit_num;type:bigint;default:0;not null;comment:限购数量"`
	ProportionValue int64          `json:"proportionValue" gorm:"column:proportion_value;type:bigint;default:0;not null;comment:中奖比例"`
	CreateId        int64          `json:"create_id" gorm:"column:create_id;type:bigint;default:0;not null;comment:更新人id"`
	UpdateId        int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"`
	CreatedAt       time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt       time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt       gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
